﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Shop
{
    [Serializable]
    class Calc
    {
        public Calc()
        { }
        private int _id_calc;
        private string _userName;
        private DateTime _date_calc;
        private List<int> _id_tovar = new List<int>();
        private double _cost;
        private string _description;
        public string userName
        {
            get { return _userName; }
            set { _userName = value; }
        }
        public DateTime date_calc
        {
            get { return _date_calc; }
            set { _date_calc = value; }
        }
        public List<int> id_tovar
        {
            get { return _id_tovar; }
            set { _id_tovar = value; }
        }
        public double cost
        {
            get { return _cost; }
            set { _cost = value; }
        }
        public string description
        {
            get { return _description; }
            set { _description = value; }
        }
        public int id_calc
        {
            get { return _id_calc; }
            set { _id_calc = value; }
        }

        void InsertToavr(int id)
        {
            _id_tovar.Add(id);
        }
    }
}
